<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$title}</h2>
    </div>
    <div style="color: #4bbd00;">
        <span style="display: inline-block;margin-bottom: 8px;font-size: 18px;">搜索次数：</span>
        <span style="display: inline-block;margin-bottom: 8px;font-size: 18px;">{$home_clean.search_times}</span>
        <!--<span style="display: inline-block;margin-bottom: 8px;font-size: 18px;margin-left: 50px;">创客编号：</span>-->
        <!--<span id="player_id" style="display: inline-block;margin-bottom: 8px;font-size: 18px;">{$maker.player_id}</span>-->
    </div>
    <form action="" id="form" method="post" enctype="multipart/form-data" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">图片<span class="check-tips">(支持 jpg、gif、png、jpeg 格式)</span></label>
            <p><img src="{$home_clean.img_url}" width="250px" height="250px" /></p>
            <input style="margin-bottom: 20px;" type="file" name="file" />
        </div>
        <div class="form-item">
            <label class="item-label">置顶<span class="check-tips"></span></label>
            <div class="controls">
                <label class="radio"><input type="radio" name="top" value="1">是</label>
                <label class="radio"><input type="radio" name="top" value="0">否</label>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">问题<span class="check-tips"></span></label>
            <div class="controls">
                <!--<label class="textarea input-large">-->
                <!--<textarea name="product_info"></textarea>-->
                <!--</label>-->
                <label class="textarea">
                    <textarea name="question">{$home_clean.question}</textarea>
                    <!--调用documentEditFormContent编辑器钩子-->
                    {:hook('documentEditFormContent', array('name'=>"question",'value'=>$home_clean['question']))}
                </label>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">答案<span class="check-tips"></span></label>
            <div class="controls">
                <!--<label class="textarea input-large">-->
                <!--<textarea name="product_info"></textarea>-->
                <!--</label>-->
                <label class="textarea">
                    <textarea name="answer">{$home_clean.answer}</textarea>
                    <!--调用documentEditFormContent编辑器钩子-->
                    {:hook('documentEditFormContent', array('name'=>"answer",'value'=>$home_clean['answer']))}
                </label>
            </div>
        </div>
        <div class="form-item">
            <input class="btn submit-btn" type="submit" value="确 定"/>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
    <php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
    <!-- 引入CSS、JS开始 -->

    <!-- 引入CSS、JS结束 -->
    <script type="text/javascript">
        Think.setValue("top", {$home_clean.top|default = 0});
        /* 当前子菜单栏高亮 */
        highlight_subnav('{:U('Wash/home_clean')}');

    </script>
</block>